package com.itcast.ssm.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 郭泽鹏
 * @Date 2020/9/14 21:53
 * @Version 1.0
 * @Description 房东订单展示
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OwnerOrder implements Serializable {
    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 房源id
     */
    private Integer orderHouseId;

    /**
     * 房屋名字
     */
    private String houseName;

    /**
     * 租客id
     */
    private Integer orderTenantId;

    /**
     * 租客姓名
     */
    private String tenantName;

    /**
     * 入住时间
     */
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderCheckInTime;

    /**
     * 离开时间
     */
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderLeaveTime;

    /**
     * 订单下单时间
     */
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderTime;

    /**
     * 订单价格
     */
    private Integer orderPrice;
}
